<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>菜单之自定义项 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="Custom Menu Item">菜单之自定义项</h2>
	<p title="Right click on page to display menu, move to the 'Open' item to display its custom sub content.">　　PC鼠标右键点击页面可显示菜单，移到『打开』项即显示其自定义子项的内容。注：移动设备长按2秒即可。</p>
	<div style="margin:20px 0;"></div>
	<div id="mm" style="width:120px;">
		<div>新建</div>
		<div>
			<span>打开</span>
			<div class="menu-content" style="text-align:left;padding:10px">
				<div style="font-weight:bold;font-size:14px;margin-bottom:10px">选择编程语言：</div>
				<ul id="tt">
					<li>Java</li>
					<li>Basic</li>
					<li>C++</li>
					<li>Fortran</li>
				</ul>
			</div>
		</div>
		<div data-options="iconCls:'icon-save'">保存</div>
		<div data-options="iconCls:'icon-print'">打印</div>
		<div class="menu-sep"></div>
		<div>退出</div>
	</div>
	<script>
		$(function(){
			$('#mm').menu();
			$('#tt').tree();
			$(document).bind('contextmenu',function(e){
				e.preventDefault();
				$('#mm').menu('show', {
					left: e.pageX,
					top: e.pageY
				});
			});
		});
	</script>

</body>
</html>